//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Collections;
using System.Collections.Specialized;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using EntLibContrib.Resource.Configuration;
using EntLibContrib.Resource.Configuration.Tests;
using EntLibContrib.Resource.Managers;

namespace EntLibContrib.Resource.Providers.Tests
{
	[ConfigurationElementType(typeof(CustomResourceProviderData))]
	public class MockCustomResourceProvider : MockCustomProviderBase, IResourceProvider
	{
		private string resourceBaseName;

		public string ResourceBaseName
		{
			get { return resourceBaseName; }
			set { resourceBaseName = value; }
		}

		public MockCustomResourceProvider(NameValueCollection attributes)
			: base(attributes)
		{
			this.resourceBaseName = attributes[ResourceProviderData.ResourceBaseNameProperty];
		}

		public string CurrentResourceManager
		{
			get { throw new Exception("The method or operation is not implemented."); }
			set { throw new Exception("The method or operation is not implemented."); }
		}

		public ExtendedComponentResourceManager CreateResourceManager()
		{
			throw new Exception("The method or operation is not implemented.");
		}
	}
}